function rxPower = CalculateRxPower(distance, exponent )
    txGainDb = 1; %According to NS-3 simulation settings
    rxGainDb = 1; %According to NS-3 simulation settings
    referenceDistance=1;
    referenceLoss=52.1;%46.677;
    txPower=-25+txGainDb;
    pathLossDb = 10 * exponent * log10 ( distance/referenceDistance);
    rxc = -referenceLoss - pathLossDb;
    rxPower = txPower + rxc + rxGainDb;
end